platform :ios,  '9.0'
use_frameworks!

target '${POD_NAME}_Example' do
  pod '${POD_NAME}', :path => '../'

  target '${POD_NAME}_Tests' do
    inherit! :search_paths

    ${INCLUDED_PODS}
  end
end

post_install do |installer|
  testPods = ['Quick', 'Nimble']

  installer.pods_project.targets.each do |target| 
    target.build_configurations.each do |config| 
      config.build_settings['COMPILER_INDEX_STORE_ENABLE'] = "NO"
      config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'YES'
    end 
  end

  installer.pods_project.targets.each do |target|
    if testPods.include? target.name
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '4.0'
      end
    end
  end
end
